# pip install zhipuai 请先在终端进行安装
import os

from zhipuai import ZhipuAI

client = ZhipuAI(api_key=os.environ["ZHIPU_API_KEY_1"])

response =  client.images.generations(
    model="cogview-3-flash", #填写需要调用的模型编码
    prompt="超人飞翔在天空",
)
print(response.data[0].url)